package com.nanrui.mutualinductor.data;


public class Packet_11 extends DKPacket {
    private static final long serialVersionUID = 2656901631744058814L;
    private short sFunB;
    private short sFunS;
    private String sModel;
    private String sSerial;
    private short sVerA;
    private short sVerB;
    private short sVerC;

    public Packet_11() {
        super((short) 1, (short) 17);
    }

    public short getsFunB() {
        return this.sFunB;
    }

    public short getsFunS() {
        return this.sFunS;
    }

    public String getsModel() {
        return this.sModel;
    }

    public String getsSerial() {
        return this.sSerial;
    }

    public short getsVerA() {
        return this.sVerA;
    }

    public short getsVerB() {
        return this.sVerB;
    }

    public short getsVerC() {
        return this.sVerC;
    }

    public byte[] packContent() {
        return new byte[0];
    }

    public String toString() {
        StringBuilder localStringBuilder = new StringBuilder();
        localStringBuilder.append("Packet_11 [\n\tModel=");
        localStringBuilder.append(this.sModel);
        localStringBuilder.append(",\n\tsVerA=");
        localStringBuilder.append(this.sVerA);
        localStringBuilder.append(",\n\tsVerB=");
        localStringBuilder.append(this.sVerB);
        localStringBuilder.append(",\n\tsVerC=");
        localStringBuilder.append(this.sVerC);
        localStringBuilder.append(",\n\tsSerial=");
        localStringBuilder.append(this.sSerial);
        localStringBuilder.append(",\n\tsFunB=");
        localStringBuilder.append(String.format("0b%8s", new Object[]{Integer.toBinaryString(this.sFunB)}).replaceAll(" ", "0"));
        localStringBuilder.append(",\n\tsFunS=");
        localStringBuilder.append(String.format("0b%8s", new Object[]{Integer.toBinaryString(this.sFunS)}).replaceAll(" ", "0"));
        localStringBuilder.append("\n]");
        return localStringBuilder.toString();
    }

    public void unpackContent(byte[] paramArrayOfByte) {
//        int k;
//        int i = 0;
//        for (int j = 0; ; j++) {
//            k = i;
//            if (j >= paramArrayOfByte.length) {
//                break;
//            }
//            if ((paramArrayOfByte[j] & 0xFF) == 0) {
//                k = j - 0;
//                break;
//            }
//        }
//        this.sModel = new String(Arrays.copyOfRange(paramArrayOfByte, 0, 0 + k));
//        j = 0 + (k + 1);
//        i = j + 1;
//        this.sVerA = ((short) (short) (paramArrayOfByte[j] & 0xFF));
//        j = i + 1;
//        this.sVerB = ((short) (short) (paramArrayOfByte[i] & 0xFF));
//        int m = j + 1;
//        this.sVerC = ((short) (short) (paramArrayOfByte[j] & 0xFF));
//        for (j = m; ; j++) {
//            i = k;
//            if (j >= paramArrayOfByte.length) {
//                break;
//            }
//            if ((paramArrayOfByte[j] & 0xFF) == 0) {
//                i = j - m;
//                break;
//            }
//        }
//        this.sSerial = new String(Arrays.copyOfRange(paramArrayOfByte, m, m + i));
//        int k = m + (i + 1);
//        this.sFunB = ((short) (short) (paramArrayOfByte[k] & 0xFF));
//        this.sFunS = ((short) (short) (paramArrayOfByte[(k + 1)] & 0xFF));
    }
}
